package com.yun.baymax.bean.adapter;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import cn.bmob.v3.BmobObject;

/**
 * Created by Administrator on 2016/11/15.
 */
@Entity
public class SavingInfo extends BmobObject {
    public String author;
    @Id(autoincrement = true)
    private Long id;
    private String name;
    private double total;
    private String remark;

    public SavingInfo() {
    }

    public SavingInfo(String name, double total,
                      String remark) {
        this.name = name;
        this.total = total;
        this.remark = remark;
    }

    @Generated(hash = 961207037)
    public SavingInfo(String author, Long id, String name, double total,
                      String remark) {
        this.author = author;
        this.id = id;
        this.name = name;
        this.total = total;
        this.remark = remark;
    }

    public void saveAll(String name, double total,
                        String remark) {
        this.name = name;
        this.total = total;
        this.remark = remark;
    }

    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getTotal() {
        return this.total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}
